package com.service.impl;



import com.entity.Product;
import com.repository.ProductRepository;
import com.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Yadasu
 * @date 2020/12/17 10:33
 */

@Service
public class ProductServiceImpl implements ProductService {

    @Autowired
    private ProductRepository repository;
    @Override
    public List<Product> all() {
        List<Product> all = repository.findAll();
        return all;
    }
}
